---
--类名: GatherControlController.lua
--创建日期: 2015-7-9
--创建人: 陈小虎
--功能描述: 采集中控制控制器
--修改内容：
--修改日期:   
--修改人:     
--修改备注: 
--

local GatherControlView = import("..views.GatherControlView")

local GatherControlController = class("GatherControlController",function()
    return display.newNode()
end)

function GatherControlController:ctor(gatherNpcId)
	self.mGatherNpcId = gatherNpcId

	self.mGatherControlView = GatherControlView.new(self)
	self:addChild(self.mGatherControlView)
end

function GatherControlController:getGatherNpcId()
	return self.mGatherNpcId
end

function GatherControlController:setGatherTime(time)
	self.mGatherControlView:setGatherTime(time)
end

function GatherControlController:setGatherOverCallback(callback)
	self.mGatherControlView:setGatherOverCallback(callback)
end

function GatherControlController:setGatherControlProgress(curTimes,maxTimes)
	self.mGatherControlView:setProgress(curTimes,maxTimes)
end

return GatherControlController